// An highlighted block
import 'dart:convert';
import 'dart:io';
import 'dart:async';
import 'dart:typed_data';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_jpf_debug/log.dart';
import 'dart:ui' as ui;
import 'package:path/path.dart' as path;
import 'package:dio/dio.dart';
import 'package:http_parser/http_parser.dart';

class MovePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return MovePageState();
  }
}

class MovePageState extends State<MovePage> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GestureDetector(
          onTap: (){
            Log.D("onTap");
          },
          onPanUpdate: (DragUpdateDetails details) {

            RenderBox _object = context.findRenderObject();
            Offset point = _object.localToGlobal(details.globalPosition);
            Log.D("onPanUpdatepointy:${point.dy}_10");
          },
          onPanEnd: (DragEndDetails details) {
            RenderBox _object = context.findRenderObject();

            //Log.D("pointy:${point.dy}_$_infoTop");

          },
          child: Container(
            color:Colors.amber,//(!!!这一行代码)
            height:300,
            //child: Text("点我试试"),
          )
      ),
    );
  }
}